<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        * {
            border: 0;
            padding: 0;
        }

        body {
            background-color: #abefe9;
        }


        hr {
            background-color: red;
            height: 1px;
            border: 0;
        }

        .main {
            width: 80vw;
            margin: 100px auto;
            position: relative;
        }

        img {
            width: 100%;
            position: absolute;
        }

        .change {
            position: absolute;
            top: 315px;
            left: 20px;
            z-index: 100;
            overflow: hidden;
        }


        .change>div {
            width: 10px;
            height: 10px;
            background-color: rgba(217, 217, 217, 0.3);
            border-radius: 5px;
            margin-right: 5px;
            float: left;
            z-index: 100;
            cursor: pointer;
        }

        .change>div:hover {
            background-color: white;
        }

        .cut1 {
            width: 30px;
            height: 70px;
            overflow: hidden;
            position: absolute;
            z-index: 100;
            top: 130px;
        }

        .cut2 {
            width: 30px;
            height: 70px;
            overflow: hidden;
            position: absolute;
            z-index: 100;
            top: 130px;
            right: 0;
        }

        .left {
            width: 20px;
            height: 20px;
            border-width: 10px;
            border-color: rgba(217, 217, 217, 0.3) transparent transparent rgba(217, 217, 217, 0.3);
            border-style: solid;
            background-color: transparent;
            transform: rotate(-45deg);
            position: absolute;
            top: 15px;
            left: 10px;
            cursor: pointer;
        }

        .right {
            width: 20px;
            height: 20px;
            border-width: 10px;
            border-color: rgba(217, 217, 217, 0.3) rgba(217, 217, 217, 0.3) transparent transparent;
            border-style: solid;
            background-color: transparent;
            transform: rotate(45deg);
            position: absolute;
            top: 15px;
            right: 10px;
            cursor: pointer;
        }
    </style>
</head>
<script>


    function show(obj) {
        document.getElementById(obj).style.zIndex = "10"

        for (var i = 1; i < 6; i++) {
            if ("" + i == obj) {
                continue
            }
            document.getElementById("" + i).style.zIndex = "1"
        }
    }

</script>

<body>
    <div class="main">
        <img src="../static/1.png" alt="" id="1">
        <img src="../static/2.png" alt="" id="2">
        <img src="../static/3.png" alt="" id="3">
        <img src="../static/4.png" alt="" id="4">
        <img src="../static/5.png" alt="" id="5">
        <div class="cut1">
            <div class="left">
            </div>
        </div>
        <div class="cut2">
            <div class="right">
            </div>
        </div>
        <div class="change">
            <div onclick="show('1')"></div>
            <div onclick="show('2')"></div>
            <div onclick="show('3')"></div>
            <div onclick="show('4')"></div>
            <div onclick="show('5')"></div>
        </div>
    </div>
</body>

</html>